﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TowerDef_s_enseEditor
{
    public partial class MapButton : Button
    {
        #region variables

        public int Index { get; set; }

        public int ImageNumber { get; set; }

        public int PreviousImageIndex { get; set; }

        #endregion

        #region functions

        public MapButton()
            : base()
        {

        }

        protected override void OnPaint(PaintEventArgs pEvent)
        {
            if (this.Enabled)
            {
                base.OnPaint(pEvent);
            }
            else
            {
                ControlPaint.DrawButton(pEvent.Graphics, pEvent.ClipRectangle, ButtonState.Inactive);
                pEvent.Graphics.DrawImage(Properties.Resources.grass_1_disabled,0,0);
            }
        }

        #endregion
    }
}
